﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x02000328 RID: 808
	public class TOrderByItemList : TParseTreeNodeList
	{
		// Token: 0x06001CF7 RID: 7415 RVA: 0x00332648 File Offset: 0x00330848
		public virtual void removeOrderByItem(int index)
		{
			if (index >= 0 && index < base.size())
			{
				this.getOrderByItem(index).setChanged();
				base.removeElementAt(index);
			}
		}

		// Token: 0x06001CF8 RID: 7416 RVA: 0x0033266A File Offset: 0x0033086A
		public virtual void addOrderByItem(TOrderByItem orderbyitem)
		{
			base.addElement(orderbyitem);
			base.setChanged();
		}

		// Token: 0x06001CF9 RID: 7417 RVA: 0x00332679 File Offset: 0x00330879
		public virtual TOrderByItem getOrderByItem(int position)
		{
			if (position < base.size())
			{
				return (TOrderByItem)this.elementAt(position);
			}
			return null;
		}

		// Token: 0x06001CFA RID: 7418 RVA: 0x00332692 File Offset: 0x00330892
		internal override void addParseTreeNode(object arg1)
		{
			this.addOrderByItem((TOrderByItem)arg1);
		}

		// Token: 0x06001CFB RID: 7419 RVA: 0x003326A0 File Offset: 0x003308A0
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001CFC RID: 7420 RVA: 0x003326B0 File Offset: 0x003308B0
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			for (int i = 0; i < base.size(); i++)
			{
				this.getOrderByItem(i).acceptChildren(v);
			}
			v.postVisit(this);
		}
	}
}
